import java.rmi.*;
import java.rmi.server.*;

public class OImpl extends UnicastRemoteObject implements O
{
public double [][] getMatrix(double [][] matrix1, double [][] matrix2) throws RemoteException
{ 
 double [][] matrix = new double[matrix1.length][matrix2[0].length];
  int c=0;
  while(c!=matrix[0].length)
  { 
   for(int i=0;i<matrix1.length;i++) 
   {double tmp_sum=0; 		  
    for(int s=0;s<matrix1[0].length;s++)       
     tmp_sum+=matrix1[i][s]*matrix2[s][c];
     matrix[i][c]=tmp_sum;
   } c++;  
  }
  return matrix;  
}
  
   OImpl() throws RemoteException
   { super(); }
}

